package com.gqz.equip.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


/**
 * 出入库订单设备表
 *
 * @author gqz20
 * @date 2023/02/18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("T_EN_WZ_CRK_ORDER_EQUIP")
public class TEnWzCrkOrderEquipEntity implements Serializable {

    /**
     * 主键
     */
    @TableId
    private String id;

    /**
     * 设备编码
     */
    @TableField(value = "SBBM")
    private String sbbm;

    /**
     * 单据编码
     */
    @TableField(value = "DJBM")
    private String djbm;

    /**
     * 是否删除 0否1是
     */
    @TableField(value = "SFSC")
    private String sfsc;

    /**
     * start这个是必须要的动态条件集合start   start
     */
    private static Map<String, SFunction<TEnWzCrkOrderEquipEntity, ?>> map;

    static {
        map = new HashMap<>();
        map.put("id", TEnWzCrkOrderEquipEntity::getId);
        map.put("sbbm", TEnWzCrkOrderEquipEntity::getSbbm);
        map.put("djbm", TEnWzCrkOrderEquipEntity::getDjbm);
        map.put("sfsc", TEnWzCrkOrderEquipEntity::getSfsc);

    }

    public static SFunction<TEnWzCrkOrderEquipEntity, ?> genColumnSFunction(String column) {
        return map.get(column);
    }
    /** end这个是必须要的动态条件集合end   end */


}
